﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Chat_Model
{
    /// <summary>
    /// 文章附件信息表
    ///</summary>
    [SugarTable("lar_article_annex")]
    public class LarArticleAnnex
    {
        /// <summary>
        /// 文件ID 
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public string Id { get; set; }
        /// <summary>
        /// 上传文件的用户ID 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="user_id"    )]
         public string UserId { get; set; }
        /// <summary>
        /// 笔记ID 
        /// 默认值: 1
        ///</summary>
         [SugarColumn(ColumnName="article_id"    )]
         public string ArticleId { get; set; }
        /// <summary>
        /// 文件后缀名 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="file_suffix"    )]
         public string FileSuffix { get; set; }
        /// <summary>
        /// 文件大小（单位字节） 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="file_size"    )]
         public string FileSize { get; set; }
        /// <summary>
        /// 文件保存地址（相对地址） 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="save_dir"    )]
         public string SaveDir { get; set; }
        /// <summary>
        /// 原文件名 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="original_name"    )]
         public string OriginalName { get; set; }
        /// <summary>
        /// 附件状态 1:正常 2:已删除 
        /// 默认值: 1
        ///</summary>
         [SugarColumn(ColumnName="status"    )]
         public string Status { get; set; }
        /// <summary>
        /// 附件上传时间 
        ///</summary>
         [SugarColumn(ColumnName="created_at"    )]
         public DateTime? CreatedAt { get; set; }
        /// <summary>
        /// 附件删除时间 
        ///</summary>
         [SugarColumn(ColumnName="deleted_at"    )]
         public DateTime? DeletedAt { get; set; }
    }
}
